package com.ruoyi.web.controller.system;

import com.ruoyi.client.service.ISysDeptService;
import com.ruoyi.client.service.ISysPostService;
import com.ruoyi.client.service.ISysRoleService;
import com.ruoyi.client.service.ISysUserService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 客户信息
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/client/client")
public class SysClient extends BaseController {
    @Autowired
    private ISysUserService userService;

    /**
     * 获取用户列表
     */
    @PreAuthorize("@ss.hasPermi('client:client:list')")
    @GetMapping("/list")
    public TableDataInfo list(SysUser user)
    {
        user.setUserType("11");
        List<SysUser> list = userService.selectUserList(user);
        return getDataTable(list);
    }

}
